<template functional>
  <div class="section-search">
    <router-link :to="props.path" class="section-search__box">
      <el-input class="section-search__input" readonly :placeholder="props.placeholder">
        <template slot="append">立即查找</template>
      </el-input>
    </router-link>
  </div>
</template>

<script>
export default {
  props: {
    path: {
      type: String,
      required: true
    },
    placeholder: {
      type: String,
      required: true
    }
  }
}
</script>

<style lang="scss" scoped>
.section-search {
  &__box {
    width: 485px;
    margin: 0 auto;
    display: block;
  }
  &__input {
    background: #ffffff;
    box-shadow: 0px 2px 13px 0px rgba(33, 34, 34, 0.09);
    border-radius: 10px;
    cursor: pointer;
  }
}
</style>
<style lang="scss">
.section-search__input {
  .el-input__inner {
    height: 54px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    cursor: pointer;
  }
  .el-input-group__append {
    background: #226eff;
    box-shadow: -2px 1px 10px 0px rgba(33, 34, 34, 0.22);
    border: none;
    padding: 0 25px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 400;
    color: #ffffff;
    user-select: none;
  }
}
</style>
